<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>TaskMetadata.as</title>
<link rel="stylesheet" type="text/css" href="../../../SourceStyles.css"/>
</head>

<body><pre><span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">task</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">domain</span>
<span class="ActionScriptBracket/Brace">{</span>
    <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">mx</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">collections</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">ArrayList</span>;

    <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">TaskMetadata</span>
    <span class="ActionScriptBracket/Brace">{</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">categories</span>:<span class="ActionScriptDefault_Text">ArrayList</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">ArrayList</span><span class="ActionScriptBracket/Brace">(</span>
                    <span class="ActionScriptBracket/Brace">[</span>   <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">TaskCategory</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">"01"</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptString">"Family"</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">,</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">TaskCategory</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">"02"</span><span class="ActionScriptOperator">,</span><span class="ActionScriptString">"Friends"</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">,</span>
                        <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">TaskCategory</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">"03"</span><span class="ActionScriptOperator">,</span><span class="ActionScriptString">"Business"</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">]</span><span class="ActionScriptBracket/Brace">)</span>;

        <span class="ActionScriptASDoc">/**
         * Priorities are defined with a reverse priority in order to
         * demonstrate and enforce a converter.
         * The visual component displays priorities from Low to High, from 1 to 4,
         * while this metadata defines different values, from 4-(Low) to 1-(Very High).
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">priorities</span>:<span class="ActionScriptDefault_Text">ArrayList</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">ArrayList</span><span class="ActionScriptBracket/Brace">(</span>
                    <span class="ActionScriptBracket/Brace">[</span>
                            <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">TaskPriority</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">"01"</span><span class="ActionScriptOperator">,</span> 4<span class="ActionScriptOperator">,</span> <span class="ActionScriptString">"Low"</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">,</span>
                            <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">TaskPriority</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">"02"</span><span class="ActionScriptOperator">,</span> 3<span class="ActionScriptOperator">,</span> <span class="ActionScriptString">"Medium"</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">,</span>
                            <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">TaskPriority</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">"03"</span><span class="ActionScriptOperator">,</span> 2<span class="ActionScriptOperator">,</span> <span class="ActionScriptString">"High"</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">,</span>
                            <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">TaskPriority</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">"04"</span><span class="ActionScriptOperator">,</span> 1<span class="ActionScriptOperator">,</span> <span class="ActionScriptString">"Very High"</span><span class="ActionScriptBracket/Brace">)</span>
                    <span class="ActionScriptBracket/Brace">]</span>
                    <span class="ActionScriptBracket/Brace">)</span>;
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">TaskMetadata</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptBracket/Brace">)</span>
        <span class="ActionScriptBracket/Brace">{</span>
        <span class="ActionScriptBracket/Brace">}</span>
    <span class="ActionScriptBracket/Brace">}</span>
<span class="ActionScriptBracket/Brace">}</span>
</pre></body>
</html>
